﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContextTrayMenuService.cs" company="WordSteps.com">
//   All rights reserved
// </copyright>
// <summary>
//   Defines the ContextTrayMenu type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace RapidDict.Modules.ContextTrayMenuService.Services
{
    using System.Windows.Forms;
    using RapidDict.Infrastructure.Interfaces;

    public class ContextTrayMenuService : IContextTrayMenuService
    {
        private readonly ContextMenuStrip contextTrayMenu;

        public ContextTrayMenuService()
        {
            // Create a object for the context menu
            this.contextTrayMenu = new ContextMenuStrip();
        }

        public ContextMenuStrip GetContextTrayMenu()
        {
            return this.contextTrayMenu;
        }
        
        public void AddMenuItem(ToolStripMenuItem item)
        {
            this.contextTrayMenu.Items.Add(item);
        }
    }
}